package equals;

public class TestMain {
    public static void main(String[] args) {
        Student s1 = new Student("张三", "20321566", 20);
        Student s2 = new Student("张三", "20321566", 20);
        if (s1.equals(s2)) {
            System.out.println("是同一个学生");
        } else {
            System.out.println("不是同一个学生");
        }
    }
}
